//
//  News.h
//  MHO
//
//  Created by papo on 2/17/14.
//  Copyright (c) 2014 maihoang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface News : NSObject

@property (nonatomic, assign) int newsId;
@property (nonatomic, strong) NSString* title;
@property (nonatomic, strong) NSString* lead;
@property (nonatomic, strong) NSString* content;
@property (nonatomic, strong) NSString* imagePath;
@property (nonatomic, strong) NSString* smallImagePath;
@property (nonatomic, strong) NSString* publishDate;
@property (nonatomic, strong) NSString* urlDetail;

+ (News*)newsFromDictionary:(NSDictionary*)dict;
+ (News*)getDetailNews:(NSString*)newId;
+ (NSArray*)newsArrayFromUrl: (NSString*)url;
+ (NSArray*)getHotNews;

- (id)initWithDictionary:(NSDictionary*)dict;

@end
